<?php

declare(strict_types=1);

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

/**
 * @todo
 */
Route::get('code', 'CodeController@code'); //code码说明

// /**
//  * 获取token
//  */
// Route::group([
//     'prefix'    => 'mini',
//     'namespace' => 'Mini',
// ], function () {
//     Route::get('openid', 'LoginController@openid'); //code缓存openid
//     Route::get('token', 'TokenController@getToken'); //获取token
// });
//
// /**
//  * api 站点
//  */
// Route::group([
//     'prefix'     => 'mini',
//     'middleware' => ['minitoken', 'LocationCheck'],
//     // 'namespace'  => 'Mini',
// ], function () {
//     Route::post('verify', 'LoginController@verify'); //获取验证码
//     Route::post('login', 'LoginController@login'); //登陆
//
//     Route::get('products', 'ProductsController@index')->name('products'); //产品列表页
// });
